package com.linkgie.galaxyframework.httpproxy.core;

import com.linkgie.galaxyframework.httpproxy.RequestBodyConverter;
import com.linkgie.galaxyframework.httpproxy.annotations.RequestBody;

/**
 * 请求体 {@link RequestBody} 标注参数；
 * @author huanghaiquan
 *
 */
class RequestBodyAnnotation {
	
	private boolean required;
	
	private RequestBodyConverter converter;
	
	public RequestBodyAnnotation(boolean required, RequestBodyConverter converter) {
		this.required = required;
		this.converter = converter;
	}

	public RequestBodyConverter getConverter() {
		return converter;
	}

	public boolean isRequired() {
		return required;
	}
	
}
